Fixed several bugs, updated to the latest version of RapidS.