Added checking to see if a slot is valid