Added worker reconnection. Draft for validating properties. Cleaning code