var filepath does not seem to be used.