Improvements to semuri script.

Signed-off-by: Wouter Beek <me@wouterbeek.com>