Fixed worksWith function.