Some Layout stuff, and some API stuff.