Adding time limits and indications of sub optimality to gapfill and gapgen