Made a simple thread the monitoring funtionality will be in this thread