Small changes for reusability
Ran reformator. Little changes for clarity
Refactored a function for clarity.