Cleaned up and consolidated Task 2 stuff in userprocess