Setting up the Pattern recognition software