Changed console logs to returns.