Improved the quick_regexp and executeCommand classes