Re-factored root constants
Added attachments function