...I just test-ran this code again and realized that the c() call actually does not work the way I have described here, I'll get back with corrected code.