Remove console log from ById function