Remade BugControlScript

Complete rewrite.