Adding existing code

Re-written from UKMNorge-plugin