Initial Commit

Move var up to top of function