Some improvements in coding