Implement core functionality.