Completed quickEncode