Fixed #1: Make sure to append to file