Added patron related functions