Initialization. Based on Cat Tracker.