Add file dependency check and implement tiemtrave accordingly