Time limit was added into gapfill generic method.