Removed inmports and main view bits, to reduce to minimum example.