Updated code to version 6.