Modification to correct ps problems