Implements core promise functionality