Added Content Elements compatibility

I added a couple of functions to enable Content Elements compatibility.