Declare some local variables

Let's avoid creating global variables