Updated version to 4.0 and dependencies.