Initial Commit

Move var to top of funciton