Resource function for bcolz