Adding all and any functions