Rewrite from scratch. Now using laravel.