Add function 'construct-key'