Added z-raise before retract