Added skipEmpty option.