Separate actions in different functions.