Added functionality for Enroll and Recognize methods.