Added more door closing code, not working yet