Mercury input implemented