Seems like this should check if the version is less than 6, not make sure it's 5.