Cleaned up Level code.