Slot detection