Added some code in oder to get the entries within chains