Added buildmodes (finally)