added version 4. Some parts are fast. Making them slow.