Added method to call on file change