Added function to clear workspace