Format and remove unneeded things