Separating RPC functions out for a cleaner main source file.