Updated code to substitute flag which was removed in kernel 3.7