Move ipls to its own script