Added lobby function