Added optional verbose flags to all functions.