Initial functionality

Fixes #1