Adding output console statements for testing.