I also think API is the way to go...

Just my $0.02