Add debug and error options