Add some script and debug