Small fixes and implemented path reduction based on tags.