Implements basic functionality.