Separate iTach code from application to easier be used as module