Rename listener function
Add newlines to end of files