Add objective function