Fine tune the codes