Adds a necessary method