Added debugging utilities