Rewritten functions to be more clear