Added more behaviour to elevator scritp