Rename variable 'object' to 'methods' (hopefully a bit clearer).