Uses custom error function which writes to STDERR