Added functions to PositionHelper.java