Improve createNode callback paramters