Add new function to debug