Working as Expected but pretty slow for my use case