Probably worth adding a comment as to why it needs to be handled both ways.