Put these variable declaration at the top for clarity