Added first_action and last_action