Adding some trap mechanisms.