Updated dependencies and set version number to 2.40