Development: changed double variable types to int where appropriate