Add initial script

Based on kasper's work