Fixed error in MobileWorks code
Added reject function to mw library