Various modifications, among others using obspy.noise correlation functions. Also horizont. component rotation.