Can this function be singleton?