Implements basic functionality (without tests)