Still working on file functionality. Very nasty way of getting directory name from client.