Added a check so that recording indexes get built once a day