Improved execution.script style
Fixed bugs and added improvements on maintenance operation