Elevator logic and status logic