Weird that changing the fuel filter made a difference for such a short period of time. It would lead you to check fuel related issues first. Getting a fuel pressure gauge on it would be an appropriate step. Other things to check would be under valve cover harness connections. If you have a bad connection, you could experience the rough running and loss of power.