Added constructor to be used when a view is not necessary.