Updated the clear availability functionality.