MR function annotated with JSDOC, also now supports promises as input value