Layout add/update functions

Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>