Added proper detach script.