Implemented basic functionality.