Added functionality to auto create pseudo class functions