Cleaned up course listing code.