Implemented silence detection