Removed the usage of Remote exception. LAsos removed the usage of
middleware methods (except in customerInfo).
Fixed syntax errors