Make stub functions do what they are supposed to