POssible workaround for out of resources problem