Modified params to use php memory