Implemented small functional prototpye.