Added a compile and preview option.