Started with a test-script. Bad code...