Expose default options. Add more type checks