Create createAssigner function and take advantage of keysIn