Added Guava precondition checks.