New RPC function and timed event bugfix