Made exit door function