Kind of a working version before trying some things