Added some neat functions and formatting.