Small update on polygon and debug functions for more future features.