First function complete.