Partial implementation of study questions. Implemented debug mode