Set max loss as an int