Another attempt at the release logic