Fiveth modifications for optimization