Added clear component functionality.