Partial implementation of Error Detection