Add definition of methods.