Optimize the newAction functions