Created functions for assignment.