Refactor simulated actions and fix bugs