Cleanup code, remove console log debugs.