Fixed function with automatic changing of ro