Add parse and format hooks