Added observers for preprocessing files (#429)