Preparing for user-mode functions