Move a function for more readability