Added script courtesy of Carlberg.