Added check for already computed files … needs improvment though