Added KeyBuilder class and copyTarget method