Improved hacking/prepare script