Added Stan-related functions.