Added error checking for invalid room numbers.