Moved the duplicate GUILayout functions here