Is there a way to not hard code this stuff?