Should work, but it doesn't, ARRRRGH. Too tired to keep coding