Removed traces of old promise code.