Removing console and local variables