Forgot to set the open() method to append mode (a+)