read_sector is now callable using stack.