Implemet basic function.