Remembered to uncomment the one line that actually makes adding applications work.