Fixed async type error
Moved foldplay to actual library
State tweaking