We might want to get this looked at by Jim. I might have missed something since the code is quite complicated.