Added print statements as testing cases.