I think orientnew and posnew should be combined into configurenew (or maybe configure_new).