Added performing enterAction on start and refactored code.
Added a demo.