Removed mask from aux.c algorithm