There needs to be a better way to do this...