Added berfore_script