Changed string formatting to use .format() style instead of % style formatting