Changed setter to a more scala like version