More work on the elevator code.