Self-regulation and its relation to motivation and proficiency