A social network for affecting personal behavior is provided. A compression level is determined for use in compressing a picture image to a predetermined target data amount by iteratively compressing a reduced version of the picture image in order to determine the compression level that is to be used to compress the picture image. The measured signal is adjusted based on the estimated total number of traps and a current trap state of the detector. The rule server decides which rules are required by each policy enforcer.