KH-213: Initial version of script

Note the commented code. That operation is a bit too heavy.