Working out folder functions.