Updated impl_util.h's optional functionality