Convert save and activate parameters to double before putting to main