Implementation of most core functionality for all actions