Java sCript changes