Master script for mirror behaviour.