Version 0.3: Added relations and template tags