Merged from develop
Added the max crop sequence feature from develop.