Saving actions to an internal array