Refactored and added new fundamental classes for script execution.