Each function should have only one responsibility.