Make changes to generation for double