Better version of defineQ. Almost ready to take over the original define.

Promises cause issues internally for some reason… not sure why. Need to
investigate.