Add fast UM code.
It is needed to be refactored.