Updated version of all the codes.