Added a small gui api