Return result from promise