Min1 and Min2 - use the correct function for minimisaing cfg