Promises support for methods. Closes #2129