Fix top-of-screen code and speed up raccoon