Implemented timeout. Can now be configured in XML. Only listens to shake
and side change events.