PSV Java Implementation