Split out dev mode script; TODO hide