Drilling Dynamics in the Presence of Mud Flow