Main frontend functions