Remove options typechecking and use a simple object instead