AH-81 Added release logic

Added logic to find and release the correct resource.