Setting up pseudo-ish code for fg and jobs