Added vectorisation checking algorithm