Add version 4.0 remove unused variables such as sina, cosa