Added Double Buffering