Allow to specify custom guards