Got first kind of working version