Fixed spacing; Moved variables to top of script; Added missing semi-colon