Changed first print statement to stderr