Finish the basic function.