First, working uncomplete version with spray.