Testing works.
Moved testing to addup.pro.
Full function with testing routine.