Hastily copy pasted code actually works?