Imported copying from original source

Signed-off-by: Christian Ege <k4230r6@gmail.com>