Added functions for response distribution.