Updated elementwise routines