Reformatted code for easier readability.