Implemented marker recognition.