Adding crop functions