Updated script to work with ALMA