Introduce 'const' argument and handle it properly in GUI. Fixes #149.