Beginning of suspend code