Adding code for new web interface