Tested and made minor modifications to tangential fields