Fixed slowdown bugs and added options for previews