I got it to work, thanks! I think it was that missing brace.