Function to check balanced parences is added.