Make sure it gets plenty of airflow! Compost systems without good aeration lead to anaerobic decomposition, which is very, very stinky. Compost systems with good aeration use aerobic decomposition, which smells a lot better.