A system in an agricultural environment; wherein the system comprises: a stationary agricultural structure comprising a moving part, which is represented by any of: a robot having a moving arm, a milking parlour with a rotating platform, or a fence with a gate; a locational device, associated with a human user and associated with a portable electronic device, configured to adjust a parameter of the stationary agricultural structure; a set of wireless signal receivers (130a, 130b, 130c), configured to receive wireless signals from the locational device; a control unit configured to: obtain geographical position of the locational device; and determine a distance between the geographical position of the locational device and the stationary agricultural structure; wherein the control unit is configured to: trigger an accident avoidance measure when the determined distance is smaller than a threshold limit (310a, 310b, 310c), wherein the accident avoidance measure comprises deactivating the moving part of the stationary agricultural structure when the determined distance is smaller than the threshold limit; and pair the portable electronic device with the stationary agricultural structure when the determined distance is smaller than an additional threshold limit, thereby enabling the portable electronic device to adjust the parameter of the stationary agricultural structure. a stationary agricultural structure comprising a moving part, which is represented by any of: a robot having a moving arm, a milking parlour with a rotating platform, or a fence with a gate; a locational device, associated with a human user and associated with a portable electronic device, configured to adjust a parameter of the stationary agricultural structure; a set of wireless signal receivers (130a, 130b, 130c), configured to receive wireless signals from the locational device; a control unit configured to: obtain geographical position of the locational device; and determine a distance between the geographical position of the locational device and the stationary agricultural structure; wherein the control unit is configured to: trigger an accident avoidance measure when the determined distance is smaller than a threshold limit (310a, 310b, 310c), wherein the accident avoidance measure comprises deactivating the moving part of the stationary agricultural structure when the determined distance is smaller than the threshold limit; and pair the portable electronic device with the stationary agricultural structure when the determined distance is smaller than an additional threshold limit, thereby enabling the portable electronic device to adjust the parameter of the stationary agricultural structure. obtain geographical position of the locational device; and determine a distance between the geographical position of the locational device and the stationary agricultural structure; wherein the control unit is configured to: trigger an accident avoidance measure when the determined distance is smaller than a threshold limit (310a, 310b, 310c), wherein the accident avoidance measure comprises deactivating the moving part of the stationary agricultural structure when the determined distance is smaller than the threshold limit; and pair the portable electronic device with the stationary agricultural structure when the determined distance is smaller than an additional threshold limit, thereby enabling the portable electronic device to adjust the parameter of the stationary agricultural structure. trigger an accident avoidance measure when the determined distance is smaller than a threshold limit (310a, 310b, 310c), wherein the accident avoidance measure comprises deactivating the moving part of the stationary agricultural structure when the determined distance is smaller than the threshold limit; and pair the portable electronic device with the stationary agricultural structure when the determined distance is smaller than an additional threshold limit, thereby enabling the portable electronic device to adjust the parameter of the stationary agricultural structure.