Accept title and type as option