Remove unnecesary code from getPeekData