Removed unnecessary getVariable function