First attempt on doing smart stuff.