New config now works
Checking not null in Key
Changed contructors to private