Removed unused variable globals