1460927148-dfb8cd34-6912-4cda-a6c0-1cb6e1f0e2bd

Automatic flushing, lid raising and seat raising arrangements for toilets include a tank top having optical sensors integral therewith so that standard flush tanks and tops may be used with only the tops being slightly altered to accommodate the optical sensors. The computer-implemented method obtains a source code, instantiates an element of the source code to form an instantiated element and identifies a meta-template within the instantiated element to form an identified meta-template. The device comprises one or more timers connected to a series of sensors so that a change in the presence of water at specific elevations will start or stop a timer.