Added suppport for custom css in a more correct way.