Wrote prototype code for RSHELL