Added 'options.debug' functionality and test file.