Added support for changing keysize and using relative percentages.