Allow running commands in foreground, closes #1