Implemented sinusoid in terms of profiles.