Add support to run without user interaction

Hope this meets your coding standards.