Improved formatting in the functions for readability.