Separate out the user code