Temp Mining code