Updated the generator so it only overwrites files if they've changed.