Updated simple environment for error handling