Added date, debug, json, rpc functions.