Added echo functionality for testing purposes.