Trial and error

But hey, it works now.