Moved variabl declaration to bottom.