Add error checking for formatting