Hacky solution for adding rules