Added HTML interface, more robust