Add stored routine implementation.