Added check for databag