Missing new-line character
Refactoring - renamed 'dataItems' function to 'applyItems' which is more
self-explaining.