Finished psh.c. Fixes #3