I've managed to make it work with minor modifications and connecting E separately. Thank you.