Door controller logic improvements