Extract action routine.