Added door open close code