Changed behaviour regarding exit signal so that the requested state is recorded but not acted upon unless the front sensor changes. Fixes #2.