Optimizations and beginning GPU work