Added new method for specifying key bytes