Added some stuff that doesn't quite work yet so I can transfer it to an ec2 instance.