Added statement for invalid format