End of working routine