Debug sendfile checking, deleted some useless code