Fix hyperparameter scanning bug; adds aws functions