Fixed issues in GPU and timer code.