Made a new function to reorganize