My version of eitwave with some changes.