Added getQuestions function and