Added as_temp method

Closes #72