Added normal leave function, to be complete