Sandbox cleanup

Just some code snippets that will be used in the near future.