Enhancements to MT4 functions