Proteins can be engineered to improve the chance of successful protein crystallization by using techniques like Surface Entropy Reduction or engineering in crystal contacts.  Frequently, problematic cysteine residues can be replaced by alanine to avoid disulfide-mediated aggregation, and residues such as lysine, glutamate, and glutamine can be changed to alanine to reduce intrinsic protein flexibility, which can hinder crystallization..