Handy scala stuff