Added basic function range (still to improve).