Removed unused variables from main to reduce stack frame size (to prevent compiler error).