Code

Variables need to be declared at top of code for better portability