Beggining of traps implementation