Using STDERR for better error handling and better code structure