Couple of helper methods to use inside the templates