Helper functions from Easybook