Adding persist and logs to console