Crazy script that works